import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import course from '@/components/course'
import paths from '@/components/paths'
import hotpath from '@/components/hotpath'
import course_detail from '@/components/course_detail'
import showpath from '@/components/showpath'
import ssh from '@/components/ssh'
import section from '@/components/section'
import UserCenter from '@/components/UserCenter'
import Member from '@/components/Member'
import person from '@/components/person'
import seckill from '@/components/seckill'
// import comments from '@/components/comments'
import editer from '@/components/editer'
import baogao from '@/components/baogao'
import spacecp from '@/components/spacecp'
import mes_content from '@/components/mes_content'
import Loading from '@/components/Loading'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/Loading',
      name: 'Loading',
      component: Loading
    },
    {
      path: '/course',
      name: 'course',
      component: course
    },
    {
      path: '/paths',
      name: 'paths',
      component: paths,
    },
    {
      path: '/hotpath',
      name: 'hotpath',
      component: hotpath,
    },
    {
      path: '/showcourse',
      name: 'course_detail',
      component: course_detail,
    },
    {
      path: '/showpath',
      name: 'showpath',
      component: showpath,
    },
    {
      path: '/ssh',
      name: 'ssh',
      component: ssh,
    },
    {
      path: '/section',
      name: 'section',
      component: section,
    },
    {
      path: '/UserCenter',
      name: 'UserCenter',
      component: UserCenter,
    },
    {
      path: '/Member',
      name: 'Member',
      component: Member,
    },
    {
      path: '/person',
      name: 'person',
      component: person,
    },
    {
      path: '/seckill',
      name: 'seckill',
      component: seckill,
    },

    // {
    //   path: '/comments',
    //   name: 'comments',
    //   component: comments,
    // },
    {
      path: '/editer',
      name: 'editer',
      component: editer,
    },
    {
      path: '/baogao',
      name: 'baogao',
      component: baogao,
    },
    {
      path: '/spacecp',
      name: 'spacecp',
      component: spacecp,
    },
    {
      path: '/mes_content',
      name: 'mes_content',
      component: mes_content,
    },
    
  ]
})
